import request from '@/utils/request'

export function page(data) {
  return request({
    url: '/device/page',
    method: 'post',
    data
  })
}
export function deleteDevice(id) {
  return request({
    url: `/device/delete/${id}`,
    method: 'post',
  })
}
export function typeList() {
  return request({
    url: '/device-type/list',
    method: 'get',
  })
}
export function activeList() {
  return request({
    url: '/device/list',
    method: 'get',
  })
}


